package com.omega.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.omega.dao.RetailerDao;
import com.omega.entity.Retailer;

@Repository
public class RetailerDaoImpl extends GenericDaoImpl<Retailer> implements RetailerDao {

	public RetailerDaoImpl(){
		super();
        setClazz(Retailer.class);
	}
	@Override
	public void addRetailer(Retailer retailer) {
		save(retailer);
	}

	@Override
	public List<Retailer> loadAllRetailers() {
		return loadAll();
	}

	@Override
	public Retailer loadById(long retailerId) {
		return loadByid(retailerId);
	}

	@Override
	public void updateRetailer(Retailer retailer) {
		update(retailer);
	}
}
